package com.google.gwt.gfx.client.graphics;

import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.ui.AbsolutePanel;
import com.google.gwt.user.client.ui.Widget;

public class GraphicPanel extends AbsolutePanel {

	private Group root = Group.get();

	public GraphicPanel() {
		super(DOM.createDiv());

		root.resize("100%", "100%");
		super.add(root, getElement());
		addStyleName("gfx-GraphicPanel");
	}

	@Override
	public void add(Widget child) {
		root.add(child);
	}

	@Override
	public boolean remove(Widget child) {
		return root.remove(child);
	}

}
